package com.example.demo.repository;

/**
 * Created by song on 2017/10/23.
 */

import com.example.demo.model.EnterpriseInfo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

//@CrossOrigin
@org.springframework.stereotype.Repository
public interface EnterpriseInfoRepository extends PagingAndSortingRepository<EnterpriseInfo,Long>, JpaSpecificationExecutor {
    List<EnterpriseInfo> findAll();
    List<EnterpriseInfo> findByCreditCode(String creditCode );
    EnterpriseInfo save(EnterpriseInfo enterpriseInfo);
    int deleteById(long id);
    EnterpriseInfo  findById(long id);

}